<?php if (!defined('THINK_PATH')) exit();?><!-- 
	
	作者：怼烎
	QQ：1395961821
	时间：2017.10.10

 -->

<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>微信商城</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <link rel="stylesheet" href="/Public/Moble_home/css/bootstrap.min.css" type="text/css">
  <link rel="stylesheet" type="text/css" href="/Public/Moble_home/css/bootstrap-theme.min.css">
  <link rel="stylesheet" type="text/css" href="/Public/Moble_home/css/shopping.css">




  <script src="/Public/Moble_home/js/jquery.min.js" type="text/javascript"></script>
  <script src="/Public/Moble_home/js/bootstrap.min.js" type="text/javascript"></script>
  <script src="/Public/Moble_home/js/layer.js" type="text/javascript"></script>
 	<!--[if lt IE 9]>
      <script src="js/html5shiv.min.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<nav class="navbar navbar-default navbar-fixed-top">
	  <div class="container-fluid">
	    <!-- 栅格 -->
	    <div class="navbar-header row">
	    	<div  class="text-center col-xs-12">
	    		<div class="col-xs-2">
		    		<a onclick="window.history.back()" class="pull-left">
		    			<div class="glyphicon glyphicon-menu-left"></div>
		    		</a>
		    	</div>
		    	<div class="col-xs-8">购物车</div>
		    	<div class="col-xs-2">
		    		<div class="pull-right">
			    		<a href="javascript:void(0);" id="point" class="dropdown-toggle" data-toggle="dropdown"><div class="text-center"><div class="glyphicon glyphicon-option-horizontal"></div></div></a>
	                    <ul class="dropdown-menu" aria-labelledby="point">
					    <li><a href="/index.php/Home/Index/index"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;首页</a></li>
    					<li role="separator" class="divider"></li>
					    <li><a href="/index.php/Home/Cart/add_cart"><span class="glyphicon glyphicon-shopping-cart text-center"></span>&nbsp;&nbsp;购物车</a></li><li role="separator" class="divider"></li>
					    <li><a href="#"><span class="glyphicon glyphicon-share-alt"></span>&nbsp;&nbsp;分享</a></li>
					  </ul>
		    		</div>
		    	</div>
	    	</div>
	    </div>
	    </div>
	</nav>

<!-- 中间 -->
<form id="cart_post" method="post" action="/index.php/Home/Order/order">
	<section>
			<!-- 商品列表 -->
			<menu class="list-unstyled">
				<?php if(is_array($cart_content)): foreach($cart_content as $key=>$V): ?><li>
					<div class="checkbox">
					  <label>
					    <input type="checkbox" name="cart_select[<?php echo ($V["cart_id"]); ?>]" class="xuan" title="<?php echo ($V["cart_id"]); ?>" <?php if($V['is_order'] == 1 ): ?>checked="checked"<?php endif; ?> ><i class="i"></i>
					    <div class="media">
						  <div class="media-left">
						    <a href="javascript:;">
						      <img class="media-object" src="<?php echo ($V["goods_url"]); ?>" alt="...">
						    </a>
						  </div>
						  <div class="media-body row">
						  	<div class="col-xs-12">
						  		<div>
						    		<span class="media-heading"><?php echo ($V["goods_name"]); ?>&nbsp;<?php echo ($V["goods_att"]); ?></span>
						    	</div>
						    </div>
						    <div class="col-xs-12">
						    	<div class="col-xs-5">
						    		<span><?php echo ($V["goods_price"]); ?>元</span>
						    		<del><?php echo ($V["market_price"]); ?>元</del>
						    	</div>
						    	<div class="col-xs-7">
						      		<button type="button" class="reduce">-</button>
						      		<input type="number" name="goods_num[<?php echo ($V["goods_num"]); ?>]" value="<?php echo ($V["goods_num"]); ?>" class="shopNumber"  />
						      		<button type="button" class="plus" >+</button>
						      	</div>
						    </div>
						    <div class="pull-right"><a title="/index.php/Home/Cart/del_cart/id/<?php echo ($V["cart_id"]); ?>" class="del" >删除</a></div>
						  </div>
						</div>
					  </label>
					</div>
				</li><?php endforeach; endif; ?>		
</form>
			</menu>
	</section>
	<!-- 底部固定 -->
	<nav class="navbar navbar-default navbar-fixed-bottom">
	  <div class="container">
	    <div class="row">
	    	<div class="col-xs-3">
	    		<label>
	    			<i id="qu"></i>
	    			<input type="checkbox" name="quan" id="quan"/>全选
	    		</label>
	    	</div>
	    	<div class="col-xs-6 text-center">
	    	共&nbsp;<span id="total_price">¥0</span>&nbsp;元
	    	</div>
	    	<div class="col-xs-3 text-center">
	    		 <button type="submit" class="btn">付款</button>
	    	</div>
	    </div>
	  </div>
	</nav>
	<script type="text/javascript">
		$(".btn").on("click",function(){
			$("#cart_post").submit();
		})
	</script>
	<script src="/Public/Moble_home/js/shopping.js" type="text/javascript"></script>
</body>

</html>